package com.angel.bo.auth.server.service;

import com.angel.bo.beans.jwt.JwtInfo;
import com.angel.bo.beans.jwt.JwtLogin;
import com.angel.bo.common.msg.WebReturn;

/**
 * @Author: Haibo.Mei [Haibo.Mei@ge.com]
 * @Description:
 * @Date: 13:25 2018/1/30
 */
public interface AuthService {

    /**
     * @Author: Haibo.Mei [Haibo.Mei@ge.com]
     * @Description:
     * @Date: 13:25 2018/1/30
     */
    WebReturn<String> login(JwtLogin jwtLogin);

    /**
     * @Author: Haibo.Mei [Haibo.Mei@ge.com]
     * @Description: 根据token获取用户信息
     * @Date: 13:44 2018/1/30
     */
    WebReturn<JwtInfo> getUserAllInfo(String token);
}
